package xiegd.com.springbootuse.demo;

import com.alibaba.fastjson.JSONObject;
import org.junit.Test;
import xiegd.com.springbootuse.demo.smc.ServiceOrderProductDetailVo;

import java.util.List;

/**
 * @Author: xieguangda
 * @Description:
 * @Date: 2022/9/22 13:35
 */
public class LambdaDemo {

    @Test
    public void mytets(){
        List<ServiceOrderProductDetailVo> init = init();
        System.out.println("我是输出看看啊:" + JSONObject.toJSONString(init));

    }



    public List<ServiceOrderProductDetailVo> init(){
        String mytest = "\t\t[\n" +
                "            { \n" +
                "                \"cleanerVo\": { \n" +
                "                    \"cleanerInfoVoList\": [\n" +
                "                        {\n" +
                "                            \"cleanerCode\": 81003583,\n" +
                "                            \"cleanerName\": \"林云亮\",\n" +
                "                        }\n" +
                "                    ]\n" +
                "                },\n" +
                "\t\t\t\t\"goodsName\": \"挂式空调清洗1\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"cleanerVo\": { \n" +
                "                    \"cleanerInfoVoList\": [\n" +
                "                        {\n" +
                "                            \"cleanerCode\": 81003583,\n" +
                "                            \"cleanerName\": \"林云亮\",\n" +
                "                         \n" +
                "                        }\n" +
                "                    ] \n" +
                "                },\n" +
                "\t\t\t\t\"goodsName\": \"挂式空调清洗2\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"cleanerVo\": { \n" +
                "                    \"cleanerInfoVoList\": [\n" +
                "                        {\n" +
                "                            \"cleanerCode\": 80563649,\n" +
                "                            \"cleanerName\": \"朱雅兰\",\n" +
                "                        }\n" +
                "                    ]\n" +
                "                },\n" +
                "                \"goodsName\": \"挂式空调清洗3\",     \n" +
                "            },\n" +
                "            {         \n" +
                "                \"cleanerVo\": {\n" +
                "                    \"cleanerInfoVoList\": [\n" +
                "                        {\n" +
                "                            \"cleanerCode\": 80563649,\n" +
                "                            \"cleanerName\": \"朱雅兰\",\n" +
                "                        }\n" +
                "                    ],\n" +
                "                   \n" +
                "                },\n" +
                "                \"goodsName\": \"挂式空调清洗4\",\n" +
                "                \n" +
                "            }\n" +
                "        ]\n";
        List<ServiceOrderProductDetailVo> serviceOrderProductDetailVos = JSONObject.parseArray(mytest, ServiceOrderProductDetailVo.class);

        return serviceOrderProductDetailVos;
    }
}
